{% extends 'app01/base.html' %}
{% load tags %}
{% block body %}

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">{{ request.user }}</a></li>

          </ul>

        </div>
      </div>
    </nav>

    <!-- web body -->

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <li class="active"><a href="#">admin页面 <span class="sr-only">(current)</span></a></li>
            <li><a href="#">Reports</a></li>
            <li><a href="#">Analytics</a></li>
            <li><a href="#"></a></li>
          </ul>
        </div>

        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

        <!-- {app01:{model:adminmodel,model02:adminmodel02}} -->

            <div class="btn-primary btn-lg"></div>
            <div class="table-responsive">
            <table class="table table-striped">
                    <thead>

                        {% for col in modeladmin.list_display %}
                            <td>{{ col }}</td>
                        {% endfor %}

                    </thead>
                    <tbody>


                            {% get_query_sets modeladmin as querysets %}

                            {% for row_obj in querysets %}
                                <tr>{% render_row_obj row_obj modeladmin %}</tr>
                            {% endfor %}





                    </tbody>


            </table>




          </div>


        </div>  <!-- end  colsm9 -->








      </div>
    </div>




</body>

{% endblock %}